/**
 * 
 */
package neptune.web.client.view.components;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ScrollPanel;

/**
 * @author Roberto Bifulco [RobertoBifulco.it] [info@robertoBifulco.it]
 * 
 */
public class LongMessageWidget extends MessageWidget {

	public LongMessageWidget(int type, String message) {
		super(type, message);
	
		this.getMainWidget().removeFromParent();
		Label label = new Label(message);
		ScrollPanel panel = new ScrollPanel(label);
		panel.setHeight("400px");
		panel.setWidth("600px");
		label.setStylePrimaryName("MessageWidget-label");
		this.setMainWidget(panel);
	}

}
